module Rails
  class Initializer
    # Thanks to http://dev.rubyonrails.org/ticket/6795
    def load_observers
      return unless configuration.frameworks.include?(:active_record)
      ActiveRecord::Base.instantiate_observers
    end
  end
end